import ajax from '../http';

export const updateProcedureApi = (params) => {
  return ajax.put(`/procedure/${params.id}`,
    JSON.stringify(params),
    {headers: {'Content-Type': 'application/json'}}
  )
};

export const createProcedureApi = (params) => {
  return ajax.post('/procedure',
    JSON.stringify(params),
    {
      headers: {'Content-Type': 'application/json'}
    }
  )
};


export const searchProcedureApi = (params) => {
  return ajax.get('/procedure/search', {params}
  )
};
